import Vue from 'vue'
Vue.filter('modelTitle', (val) => {
  let newVal = ''
  switch (val) {
    case 'add':
      newVal = '添加数据'
      break
    case 'edit':
      newVal = '修改数据'
      break
    case 'details':
      newVal = '查看数据'
      break
  }
  return newVal
})